﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace FXCopAddIn.Classes
{
    public sealed class ThreeStateTreeNode : TreeNode
    {
        private Enums.ThreeState _estado;

        public Enums.ThreeState Estado
        {
            get 
            { 
                return _estado; 
            }
            set 
            {
                _estado = value;

                switch (_estado)
                {
                    case Enums.ThreeState.Checked:
                        this.StateImageKey = "checked_black.png";
                        break;
                    case Enums.ThreeState.Undefined:
                        this.StateImageKey = "checked_gray.png";
                        break;
                    case Enums.ThreeState.Unchecked:
                        this.StateImageKey = "checked_white.png";
                        break;
                }
            }
        }
    }
}
